import { http } from "@/utils/http";

// 获取待分拣包裹数量

export const getPackagePendingNumApi = (warehouseId: string) => {
  // console.log("getLogin data:", data);
  return http.request<any>("get", `/cp/orderfills/pending-review/count`, {
    params: {
      warehouseId: warehouseId
    }
  });
};
// 获取被挂起的包裹单
export const getHangupPackagePendingNumApi = (warehouseId: string) => {
  // console.log("getLogin data:", data);
  return http.request<any>("get", `/cp/orderfills/hang-up/count`, {
    params: {
      warehouseId: warehouseId
    }
  });
};

// 获取包裹单详情

export const getPackageDetailApi = (orderfillNo: string) => {
  // console.log("getLogin data:", data);
  return http.request<any>("get", `/cp/orderfills/by-no/${orderfillNo}`);
};
